home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6705 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: oitnews.harvard.edu!cmcl2!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2
  4. Subject: Re: Hungarian notation - whoops!
  5. Date: 8 Feb 1996 10:38:35 -0500
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.823793746@schonberg>
  8. References: <30C40F77.53B5@swsbbs.com> <Pine.HPP.3.91.960124153551.24374C-100000@zeezrom.cs.byu.edu> <4e7ifl$et3@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960129133429.8419C-100000@foggy.cs.byu.edu> <4em29qINN39r@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960201015336.17360C-100000@clear.cs.byu.edu> <4f41vf$g8j@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960205124102.18647E-100000@warm.cs.byu.edu> <4fc157$jsf@goanna.cs.rmit.EDU.AU>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Richard said:
  13.  
  14. "(it was sign-and-magnitude; I still think having a negative number whose
  15. absolute value can't be represented is _silly_).  That kind of mainframe
  16. is still made and still used and still appropriate.,"
  17.  
  18. As far as I know, no current machine uses sign and magnitude representation
  19. for integer values, so I obviously have a gap in my knowledge. S&M 
  20. representation is so hostile at a design level, that I thought everyone
  21. had abandoned it long ago (there is still an instance or two of 1's
  22. complement, but that of course is quite different). Richard, please
  23. enlighten.
  24.  
  25. The comment about 2's complement being silly is a bit like saying you
  26. think that the use of binary is silly. The choice of 2's complement,
  27. like binary, is made for architectural reasons, not to be convenient
  28. for humans.
  29.  
  30. By the way, S&M is of course the right representation of floating-point,
  31. using 2's complement for floating-point is a goof that only a designer
  32. not understanding fpt would make!
  33.  
  34.